
public class Mult {
	public static int[] mult(int[] a, int b) {
        int carry = 0;        
        int[] c = new int[a.length];        
        for(int i = a.length - 1; i >=0; i--) {      
            int tmp = a[i] * b + carry;      
            c[i] = tmp % 10000;         
            carry = tmp / 10000;       
         } 
	
        return c;
	}
}
